package net.onceface.web.resources;

import net.onceface.infra.json.JsonUtil;

public class BaseResource {

	public String toDateJson(Object obj){
		return JsonUtil.objectToJsonDateSerializer(obj, "yyyy-MM-dd HH:mm:ss");
	}
	
	public String toJson(Object obj){
		return JsonUtil.objectToJson(obj);
	}
}
